body {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    color: #333;
    text-align: center;
}
h1 {
  color: #fff;
  margin-bottom: 30px;
  font-family: 'Fredoka One', cursive;
}
.wheel-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
}
.wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wheel-btn {
  background: #4CAF50;
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  width: 60px;
  margin: 5px 0;
}
.wheel-btn:hover {
  background: #45a049;
}
.wheel-display {
  width: 100px;
  height: 50px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(255,255,255,0.8);
  position: relative;
}
.wheel-display.chord-display{
  width:150px;
}
.wheel-list {
  transition: transform 0.3s ease-in-out;
}
.wheel-item {
  height: 50px;
  line-height: 50px;
  font-weight: bold;
  font-size: 20px;
}
#scale-display {
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 40px;
}
/* Piano Keyboard Styles */
.keyboard{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 10px;
}
.chordboard{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 10px;
}
.chordbody{
  display: flex;
  gap: 10px;
}
.C-E{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.F-B{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.key {
  width: 60px;
  height: 200px;
  border: 1px solid #000;
  background: white;
  text-align: center;
  line-height: 340px;
  font-weight: bold;
  color: black;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  position: relative;
}
.key:active {
  transform: scale(0.95);
  animation: pressGlow 0.5s forwards;
}
.key.black {
  width: 40px;
  height: 130px;
  background: black;
  color: white;
  margin-left: -20px;
  margin-right: -20px;
  z-index: 1;
  line-height: 20px;
}
#key_black_text {
  margin-top: 80px;
}

/* Chord page Grid of buttons */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 20px auto;
}
.grid-button {
  border-radius: 6px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.chord-output {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}
/* Red glow animation for highlighted keys */
@keyframes regGlow {
  from { box-shadow: none; }
  to { background:rgb(70, 187, 216); }
}
.highlight {
  animation: regGlow 0.5s forwards;
}
@keyframes pressGlow {
  from { box-shadow: none; }
  to { background:rgb(6, 225, 10); }
}
.presslight {
  animation: pressGlow 0.5s forwards;
}
@keyframes keyGlow {
  from { box-shadow: none; }
  /* to { background:rgb(76, 175, 80); } */
  to { background:rgb(69, 160, 73); }
}
.key-highlight {
  animation: keyGlow 0.5s forwards;
}

#text-body{
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  height: 100vh; /* Full viewport height */
  margin: 0;
}
